<?php
/**
 * 首页日志列表部分
 */
?>
<div id="main"><?php
foreach($logs as $value) {
	?>
	<div class="log_title"><a href="<?php echo BLOG_URL;?>/?article=<?php echo $value['id'];?>"><?php echo $value['title'];?></a></div>
	<div class="log_content"><?php echo $value['content'];?></div>
	<div class="log_footer">
		作者：<?php blog_author($value['user_name']);?>
		&nbsp;发表时间：<?php echo date('Y-n-j G:i l', $value['time_date']);?>
		<?php blog_tag($value['id']);?>
		&nbsp;<a href="<?php echo BLOG_URL;?>/?post=<?php echo $value['logid'];?>#comment">评论(<?php echo $value['comnum'];?>)</a>
		&nbsp;<a href="<?php echo BLOG_URL;?>/?post=<?php echo $value['logid'];?>">浏览(<?php echo $value['views'];?>)</a>
		&nbsp;<?php editflg($value['id']);?>
	</div>
	<?php
}
?>
<!-- 页面导航-->
<div id="pagenavi">
<?php
$burl = explode('?',$_SERVER['REQUEST_URI']);
$burl = $burl[0];
if ($pre_bookmark) {
	?>
	<div id="pre_page">
		<a class="sided" href="http://<?php echo $_SERVER['HTTP_HOST'].$burl;?>?b=<?php echo $pre_bookmark;?>">上一页</a>
	</div>
	<?php
}

if ($next_bookmark) {
	?>
	<div id="next_page">
		<a class="sided" href="http://<?php echo $_SERVER['HTTP_HOST'].$burl;?>?b=<?php echo $next_bookmark;?>">下一页</a>
	</div>
	<?php
}?>
</div></div>
<!-- end content-->
<?php
include getViews('side');
include getViews('footer');
